/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dominio.torcedor.pagamento;

import dominio.torcedor.socio.Associado;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author devair
 */
@Entity
@Table(name = "mensalidade")
@SequenceGenerator(name = "mensalidadeseq", initialValue = 1, allocationSize = 1)
public class Mensalidade implements Serializable {

    @Id
    @GeneratedValue(generator = "mensalidadeseq", strategy = GenerationType.SEQUENCE)
    private Long id;

    

    @ManyToOne
    private Associado associado;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the associado
     */
    public Associado getAssociado() {
        return associado;
    }

    /**
     * @param associado the associado to set
     */
    public void setAssociado(Associado associado) {
        this.associado = associado;
    }

    
}
